<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
</head>
<title><?php echo $title; ?></title>
<body>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
	base_url = '<?php echo url::base(); ?>';
</script>
<!--output_script-->
<?php echo html::script(array("media/script/main.js")); ?>
<?php echo html::stylesheet(array('media/style/main.css')); ?>

<div id="wrapper">
	<div id="header">
		<div class="meta fr">
		<?php if(user::active()->login) { $user = user::get_user(); echo welcome(); ?>
		<?php echo $user->link?html::anchor($user->link,$user->username):$user->username; ?> | <a href="<?php echo url::site('user/logout'); ?>">退出</a> <a href="<?php echo url::site('article/publish'); ?>" id="feedback_btn">我要反馈</a>
		<?php }else{ ?>
		<span><a href="#" id="login_btn">登录</a> / <a href="<?php echo Kohana::config('site.register_url'); ?>">注册</a></span>
		<form action="<?php echo url::site('user/login'); ?>" method="post" id="login_form" class="hide fr"><input name="email" type="text" title="Email" /> &nbsp;<input title="密码" type="password" name="password" /><input type="submit" class="hide" /></form>
		<?php } ?>
		</div>
		<h1><a href="<?php echo url::site();?>"><?php echo Kohana::config('site.site_name'); ?></a></h1>
	</div>
	<div id="content" class="clear">
		<?php echo $content; ?>
	</div>
	<div id="footer">
		powered by <a href="http://lzyy.org/blog/my-project-getfeedback">getfeedback</a>
	</div>
</div>

</body>
</html>
